/* SmartInput Chrome扩展设置页面样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.options-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 头部样式 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo .icon {
  font-size: 24px;
}

.logo .title {
  font-size: 20px;
  font-weight: 600;
}

/* 主内容区域 */
.main-content {
  padding: 30px;
}

.settings-section {
  margin-bottom: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.settings-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.setting-group {
  margin-bottom: 20px;
}

.setting-group label {
  display: block;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.setting-group input[type="text"],
.setting-group input[type="url"],
.setting-group input[type="password"],
.setting-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.setting-group input:focus,
.setting-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.setting-group input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.setting-group input[type="range"] {
  width: 200px;
  margin-right: 10px;
}

.range-value {
  font-weight: 500;
  color: #667eea;
  min-width: 30px;
  display: inline-block;
}

.setting-description {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  line-height: 1.4;
}

/* 按钮样式 */
button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.edit-shortcut-btn {
  background: #6c757d;
  color: white;
  margin-left: 10px;
  padding: 6px 12px;
  font-size: 12px;
}

.edit-shortcut-btn:hover {
  background: #5a6268;
}

.login-btn {
  background: #28a745;
  color: white;
  margin-right: 10px;
}

.login-btn:hover {
  background: #218838;
}

.logout-btn {
  background: #dc3545;
  color: white;
}

.logout-btn:hover {
  background: #c82333;
}

.export-btn {
  background: #17a2b8;
  color: white;
  margin-right: 10px;
}

.export-btn:hover {
  background: #138496;
}

.import-btn {
  background: #ffc107;
  color: #212529;
  margin-right: 10px;
}

.import-btn:hover {
  background: #e0a800;
}

.reset-btn {
  background: #6c757d;
  color: white;
}

.reset-btn:hover {
  background: #5a6268;
}

/* 底部样式 */
.footer {
  padding: 20px 30px;
  background: #f1f3f4;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button-group {
  display: flex;
  gap: 10px;
}

.save-btn {
  background: #667eea;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
}

.save-btn:hover {
  background: #5a6fd8;
}

.cancel-btn {
  background: #6c757d;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
}

.cancel-btn:hover {
  background: #5a6268;
}

.version-info {
  font-size: 12px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .options-container {
    margin: 0;
    box-shadow: none;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .settings-section {
    padding: 15px;
  }
  
  .footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .button-group {
    width: 100%;
    justify-content: center;
  }
}

/* 动画效果 */
.settings-section {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 状态样式 */
.success {
  color: #28a745;
}

.error {
  color: #dc3545;
}

.warning {
  color: #ffc107;
}

.info {
  color: #17a2b8;
}

/* 加载状态 */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 通知样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

.notification.success {
  background: #28a745;
}

.notification.error {
  background: #dc3545;
}

.notification.warning {
  background: #ffc107;
  color: #212529;
}

.notification.info {
  background: #17a2b8;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 快捷键编辑模式 */
.shortcut-editing {
  background: #fff3cd;
  border-color: #ffeaa7;
}

.shortcut-editing:focus {
  border-color: #fdcb6e;
  box-shadow: 0 0 0 2px rgba(253, 203, 110, 0.2);
}

/* 禁用状态 */
.setting-group.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.setting-group.disabled input,
.setting-group.disabled select,
.setting-group.disabled button {
  cursor: not-allowed;
}

/* 工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* 文件上传样式 */
.file-input {
  display: none;
}

.file-label {
  display: inline-block;
  padding: 8px 16px;
  background: #17a2b8;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.file-label:hover {
  background: #138496;
}

/* 进度条样式 */
.progress-bar {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: #667eea;
  transition: width 0.3s ease;
} 